package com.bite.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @PostMapping("/hello")
    public String hello(){
        return "hello Spring Boot~";
    }


    @RequestMapping("/hello111")
    public Integer hello2(){
        int a= 4/0;
        return 111;
    }
}
